<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link type="text/css" rel="stylesheet" href="/amigooo/assets/css/bootstrap.css" />
<link type="text/css" rel="stylesheet" href="/amigooo/assets/css/jquery.pnotify.default.css" />
<link type="text/css" rel="stylesheet" href="/amigooo/assets/css/start/start.css" />
<link type="text/css" rel="stylesheet" href="/amigooo/assets/css/home/company.css" />
<title>Amigooo!</title>
</head>
<body>
	<div class="row-fluid">
		<div class="navbar navbar-static navbar-custom">
			<div class="navbar-inner">
				<div class="container" style="width: auto;">
					<a class="brand" href="/amigooo/home/start" style="margin-top: 5px !important;margin-left: 22px !important;height: 30px !important;padding: 0px !important;">
						<img alt="Amigooo" style="height: 30px !important;" src="/amigooo/assets/img/logo_small_w.png">
						Amigooo!
					</a>
					<ul class="nav pull-right" role="navigation">
						<li class="dropdown">
							<a id="drop1" href="#" role="button" class="dropdown-toggle" data-toggle="dropdown" style="color:white !important;text-shadow: 0 1px 0 #777777 !important;">
								<img id="user-picture" alt="${userSession.user.email}" src="" style="margin-top: -3px !important;border:1px solid black;"/>
								${userSession.user.name}<b class="caret"></b>
							</a>
							<ul class="dropdown-menu" role="menu" aria-labelledby="drop1">
								<li role="presentation"><a role="menuitem" tabindex="-1" href="#"><i class="icon-wrench"></i> Alterar conta</a></li>
								<li class="divider"></li>
								<li role="presentation"><a role="menuitem" tabindex="-1" href="/amigooo/login/logout"><i class="icon-off"></i> Sair</a></li>
							</ul>
						</li>
					</ul>
				</div>
			</div>
            <div class="header">
            	<a class="title-company" href="/amigooo/home/start" title="${userSession.user.establishment.company}">${userSession.user.establishment.company}</a>
            </div>
            <div class="company-logo">
            	<a href="/amigooo/home/start" title="${userSession.user.establishment.company}"><img id="companyLogo" alt="${userSession.user.establishment.email}" src="" class="img-rounded" /></a>
            </div>
		</div>
		<div class="fluid12">
			<div class="row-fluid">
				<div class="span2">
					<div class="well sidebar-nav" style="padding-bottom: 0px !important;">
						<ul class="nav nav-list">
							<li class="nav-header"><i class="icon-chevron-right"></i>
								Cardápio</li>
							<li><a href="/amigooo/drinks"><i class="icon-glass"></i> Bedidas</a></li>
							<li><a href="/amigooo/meals"><i class="icon-fire"></i> Refeições</a></li>
							<li><a href="/amigooo/snacks"><i class="icon-leaf"></i> Lanches</a></li>
							<li><a href="/amigooo/specials"><i class="icon-star-empty"></i> Especiais</a></li>
							<li><a href="/amigooo/sales"><i class="icon-gift"></i> Promoções</a></li>
							<li><a href="/amigooo/others"><i class="icon-tags"></i> Outros</a></li>
							<li class="nav-header"><i class="icon-chevron-right"></i>
								Opções</li>
							<li class="active"><a href="/amigooo/company"><i class="icon-globe"></i> Empresa</a></li>
							<li class="nav-header"><i class="icon-chevron-right"></i> Painel</li>
							<li>
								<div class="alert alert-success" style="margin-top:20px;cursor: pointer !important;width: auto !important;height: auto !important;padding-top: 8px !important;" onclick="javascript:window.location.href='/amigooo/panel'">
									<h6 style="float: none !important;margin:0 auto !important;padding:0px !important;"><i class="icon-th-list"></i>Acessar Painel</h6>
								</div>
							</li>
						</ul>
					</div>
				</div>
				<div class="span10">
					<div class="custom-container">
						<form class="form-horizontal form-company" action="<c:url value="company/save"/>" method="post">
							<fieldset style="width: 590px !important;">
								<legend>Empresa</legend>
								<input id="establishment.id" name="establishment.id"
									type="hidden" value="${establishment.id}" required="">

								<div class="control-group">
									<label class="control-label">Nome</label>
									<div class="controls">
										<div class="input-prepend">
											<span class="add-on"><i class="icon-briefcase"></i></span> <input
												id="establishment.company" name="establishment.company"
												type="text" placeholder="Nome da empresa"
												class="input-xlarge" value="${establishment.company}"
												required="">
										</div>
										<p class="help-block">Informe o nome da empresa. Este será
											o nome que aparecerá para os clientes.</p>
									</div>
								</div>

								<div class="control-group">
									<label class="control-label">E-mail</label>
									<div class="controls">
										<div class="input-prepend">
											<span class="add-on"><i class="icon-envelope"></i></span> <input
												id="establishment.email" name="establishment.email"
												class="input-xlarge" placeholder="E-mail da empresa"
												type="email" required="" value="${establishment.email}">
										</div>
									</div>
								</div>

								<div class="control-group">
									<label class="control-label">Facebook</label>
									<div class="controls">
										<div class="input-prepend">
											<span class="add-on"><i class="icon-thumbs-up"></i></span> <input
												id="establishment.facebook" name="establishment.facebook"
												type="text" placeholder="Página do Facebook"
												class="input-xlarge" value="${establishment.facebook}"
												data-toggle="tooltip" data-placement="right" data-original-title="Link para a página da empresa no Facebook">
										</div>
										<p class="help-block">Informe o link para a página da empresa no Facebook.</p>
									</div>
								</div>

								<div class="control-group">
									<label class="control-label">Telefone</label>
									<div class="controls">
										<div class="input-prepend">
											<span class="add-on"><i class="icon-comment"></i></span> <input
												id="establishment.phone" name="establishment.phone"
												type="text" placeholder="Telefone" class="input-small"
												value="${establishment.phone}" required="">
										</div>
									</div>
								</div>
								
								<div class="control-group">
									<label class="control-label">CNPJ</label>
									<div class="controls">
										<div class="input-prepend">
											<span class="add-on"><i class="icon-list-alt"></i></span> 
											<input id="establishment.tax" name="establishment.tax"
												type="text" placeholder="CNPJ" class="input-xlarge"
												value="${establishment.tax}" required="">
										</div>
									</div>
								</div>

								<div class="control-group">
									<label class="control-label"></label>
									<div class="controls">
										<button type="submit" id="save" name="save"
											class="btn btn-success">Salvar</button>
									</div>
								</div>
							</fieldset>
						</form>
					</div>
				</div>
			</div>
		</div>
	</div>
</body>
<script type="text/javascript" src="/amigooo/assets/js/jquery.js"></script>
<script type="text/javascript" src="/amigooo/assets/js/bootstrap.js"></script>
<script type="text/javascript" src="/amigooo/assets/js/jquery.pnotify.js"></script>
<script type="text/javascript" src="/amigooo/assets/js/md5.js"></script>
<script type="text/javascript" src="/amigooo/assets/js/start/script.js"></script>
<script type="text/javascript">${result}</script>
</html>